{% extends "bouting/base.html" %}
{% block content %}

{% if clubList %}
    <ul>
    {% for club in clubList %}
        <li>
            <a href="/bouting/{{club.id}}/clubDetail/">{{club}}</a>
            {% if user in club.owners.all %}
                <a href="/bouting/{{club.id}}/deleteClub/">X</a>
                <a href="/bouting/{{club.id}}/editClub/">Edit</a>
            {% endif %}
        </li>
    {% endfor %}
    </ul>
{% else %}
    <p>There are no clubs :(</p>
{% endif %}


{%endblock%}